<h1>Listado de Promociones</h1>
<?php
    echo $this->html->link('Agregar Pomocion', array('action'=>'add'));

?>
<table>
        <tr>
                <th>Nombre</th>
                <th>Id</th>
                <th>Codigo</th>
                <th>Descripcion</th>
                <th>Acciones</th>
        </tr>
<?php foreach($promociones as $promocion):?>
        <tr>
                <td> <?php echo $promocion['Promotion']['nombre'];?></td>
                <td> <?php echo $promocion['Promotion']['id'];?></td>
                <td> <?php echo $promocion['Promotion']['codigo'];?></td>
                <td> <?php echo $promocion['Promotion']['descripcion'];?></td>
                
               
                   
                <td>
<?php echo $this->Html->Link( 'Editar', array('action'=>'edit',$promocion ['Promotion']['id']));?>                
<?php echo $this->Form->postLink('Eliminar', array('action'=>'delete', 
            $promocion['Promotion']['id']), array('confirm' =>'Realmente desea eliminar esta promocion'));
            ?>
            </td>
        </tr>
<?php endforeach;?>
</table>

